//
//  zgSearchViewController.m
//  YFListenStock
//
//  Created by ChinaRainbow-iOS on 2018/10/16.
//  Copyright © 2018年 ChinaRainbow-iOS. All rights reserved.
//

#import "YFHomeSearchViewController.h"

@interface YFHomeSearchViewController ()

@end

@implementation YFHomeSearchViewController

- (instancetype)initWithSearchResultsController:(UIViewController *)searchResultsController
{
    if (self = [super initWithSearchResultsController:searchResultsController]) {
        self.hidesNavigationBarDuringPresentation = YES;
        self.searchBar.barTintColor = [UIColor zg_ffffffWhiteColor];
        self.searchBar.tintColor = [UIColor zg_333333GrayColor];
        self.searchBar.translucent = NO;
        [self.searchBar setBackgroundImage:[UIImage imageWithColor:[UIColor zg_ffffffWhiteColor]]];
        self.searchBar.searchTextPositionAdjustment = UIOffsetMake(10, 0);
        UITextField *searchTextFiled = [self.searchBar valueForKey:@"searchField"];
        searchTextFiled.backgroundColor = HexColor(0xf1f1f1);
        searchTextFiled.textColor = [UIColor zg_333333GrayColor];
        searchTextFiled.font = [UIFont zg_systemFontWithSize:15];
        searchTextFiled.tintColor = [UIColor zg_333333GrayColor];
        searchTextFiled.layer.cornerRadius = searchTextFiled.height/2;
    }
    return self;
}

@end
